<{include file="admin:common/header.html"}>
<div class="page-title">
	<table width="100%" align="center" cellpadding="0" cellspacing="0" >
		<tr>
			<td width="30" align="right"><img src="<{$pager.url}>/images/main-h5-ico.gif" alt="" /></td>
			<th><{$MOD.title}></th>
			<td align="right"><{link ctl="ask/ask:create" class="button" title="添加"}>&nbsp;&nbsp;&nbsp;<{link ctl="ask/ask:so" load="mini:搜索内容" width="mini:500" class="button" title="搜索"}></td>
			<td width="15"></td>
		</tr>
	</table>
</div>
<div class="page-data">	
	<form id="items-form">
    <table width="100%" border="0" cellspacing="0" class="table-data table">
    <tr><th class="w-100">ID</th><th>标题</th><th class="w-50">分类</th><th>用户</th><th class="w-100">创建时间</th><th>创建IP</th><th class="w-50">浏览数</th><th class="w-50">回答数</th><th class="w-50">状态</th><th class="w-50">排序</th><th class="w-50">审核</th><th class="w-150">操作</th></tr>
    <{foreach $items as $item}>
    <tr>
        <td><label><input type="checkbox" value="<{$item.ask_id}>" name="ask_id[]" CK="PRI"/><{$item.ask_id}><label></td>
        <td><{$item.title|cutstr:60}></td><td><{$cates[$item.cat_id].title}></td>
        <td><{$member_list[$item.uid].uname|default:'游客'}>(ID:<{$item.uid}>)</td>
        <td><{$item.dateline|format}></td><td><{$item.clientip}></td><td><{$item.views}></td><td><{$item.answer_num}></td>
        <td><{if $item.answer_id}><b class="blue">已解决(<{$item.answer_id}>)</b><{else}><b class="red">未解决</b><{/if}></td>
        <td><{$item.orderby}></td><td><{if $item.audit}>正常<{else}><b class="red">待审</b><{/if}></td>
        <td>
            <{link ctl="ask/answer" arg0=$item.ask_id title="答案管理" class="button"}>
            <{link ctl="ask/ask:edit" args=$item.ask_id title="修改" class="button"}>   
            <{link ctl="ask/ask:delete" args=$item.ask_id act="mini:删除" confirm="mini:确定要删除吗？" title="删除" class="button"}>
        </td>
    </tr>
    <{foreachelse}>
     <tr><td colspan="20"><p class="text-align tip-notice">没有数据</p></td></tr>
    <{/foreach}>
    </table>
	</form>
	<div class="page-bar">
		<table>
			<tr>
			<td class="w-100"><label><input type="checkbox" CKA="PRI"/>&nbsp;&nbsp;全选</label></td>
			<td colspan="10" class="left"><{link ctl="ask/ask:delete" type="button" submit="mini:#items-form" confirm="mini:确定要批量删除选中的内容吗?" priv="hide" value="批量删除"}>&nbsp;&nbsp;&nbsp;<{link ctl="ask/ask:doaudit" type="button" submit="mini:#items-form" confirm="mini:确定要批量审核选中的内容吗?" priv="hide" value="批量审核"}></td>
			<td class="page-list"><{$pager.pagebar}></td>
		</tr>
		</table>
	</div>
</div>
<{include file="admin:common/footer.html"}>